#include<bits/stdc++.h>
#define p 998244353
//~ #define int long long
using namespace std;
template<typename T>inline void read(T &x){
	T f=1;char ch=getchar();x=0;
	for(;!isdigit(ch);ch=getchar())if(ch=='-')f=-1;
	for(;isdigit(ch);ch=getchar())x=(x<<3)+(x<<1)+ch-'0';
	x*=f;
}
template<typename T>inline void write(T x){
	if(x<0){putchar('-');x=-x;}
	if(x<10){putchar(x+'0');return;}
	write(x/10);
	putchar(x%10+'0');
}
int a[100010];
int n,ans;
signed main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	read(n);
	ans=n;
	for(int i=1;i<=n;i++){
		read(a[i]);
	}
	sort(a+1,a+n+1);
	int k=2;
	for(int i=1;i<=n;i++){
		while(k<=n&&a[i]>=a[k])k++;
		if(k>n)break;
		k++;
		ans--;
	}
	write(ans);putchar('\n');
	return 0;
}
//20090626
/*


5
1 2 3 1 2
 
10
136 136 136 2417 136 136 2417 136 136 136


*/
